package cn.neusoft.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Substation {
    private Long substation_id;

    private Long parent_id;

    private String substation_name;

    private String substation_addr;

    private String leader;

    private String status;

    private String substation_tel;

    private String del_flag;

    private String create_by;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") // 处理响应
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // 处理请求
    private Date create_time;

    private String update_by;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") // 处理响应
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // 处理请求
    private Date update_time;

    private String remark;

    private String coordinate;  // 坐标(即经纬度)
}